<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.js"></script>
    <script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>
    <title>p33-34</title>
</head>
<body>
    <div id="app">
        <input type="button" @click="getInfo" value="get请求">
        <input type="button" @click="postInfo" value="post请求">
        <input type="button" @click="jsonpInfo" value="jsonp请求">
    </div>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{},
            methods:{
                getInfo(){
                    this.$http.get("https://a.qjshow.com/weapp/portal/v1/updateclient?clientid='dada'",{},{emulateJson:true}).then(function(res){
                        console.log(res.body);
                    })
                },
                postInfo(){
                    this.$http.post("").then(function(){

                    });
                },
                jsonpInfo(){
                    this.$http.jsonp().then(function(){
                        
                    })
                }
            },
            filters:{},
            directives:{}
        })
    </script>
</body>
</html>